/**
 * @author caesar
 * @date 2025/7/1
 * @apiNote
 */
//案例需求：遍历输出一副扑克牌。
public class homework1_4 {
    public static void main(String[] args) {
        String[] hua = {"黑桃","红桃","梅花","方片"};
        String[] dian = {"A","2","3","4","5","6","7","8","9","10","J","Q","K"};
        String[] pu = new String[hua.length * dian.length];

        for (int i = 0; i < hua.length; i++) {
            for (int j = 0; j < dian.length; j++) {
                pu[i * dian.length + j] = hua[i] + dian[j];
            }
        }
        for (int i = 0; i < pu.length; i++) {
            System.out.print(pu[i]+" ");
            if((i+1) % 13 == 0){
                System.out.println();
            }
        }
        System.out.print("大王 小王");

    }
}
